<?php

namespace App\Providers;

use App\Events\OrderPaidEvent;
use App\Events\OrderRefundedEvent;
use App\Events\PlayerAddPollsEvent;
use App\Events\PlayerMinusPollsEvent;
use App\Listeners\OrderPaidListener;
use App\Listeners\OrderRefundListener;
use App\Listeners\PlayerPollsListener;
use Illuminate\Foundation\Support\Providers\EventServiceProvider as ServiceProvider;

class EventServiceProvider extends ServiceProvider
{
    protected $listen = [
        PlayerAddPollsEvent::class => [
            PlayerPollsListener::class,
        ],
        PlayerMinusPollsEvent::class => [
            PlayerPollsListener::class,
        ],
        OrderPaidEvent::class => [
            OrderPaidListener::class,
        ],
        OrderRefundedEvent::class => [
            OrderRefundListener::class,
        ],
    ];

    public function boot(): void
    {
    }

    public function shouldDiscoverEvents(): bool
    {
        return false;
    }
}
